<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    
	    <!-- Loading Flat UI -->
	    <!--<link href="Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">-->
	    <!--<link href="Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">-->
	    <!--<link rel="shortcut icon" href="Public/Admin/Flat/img/favicon.ico">-->
	    <link href="Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <style type="text/css">
	    	#page{
	    		float: right;
	    		margin-right: 20px;
	    		list-style: none;
	    		height: 30px;
	    	}
	    </style>
	</head>
	<body>
		<table class="table table-hover">
			<tr class="active">
			  <th width="30">Id</th>
			  <th width="330" style="text-align: center;">商品名称</th>
			   <th width="180">价格</th>
			   <th width="80">库存</th>
			   <th width="100">点击次数</th>
			   <th width="100">添加时间</th>
			  <th width="200" style="text-align: center;">操作</th>
			</tr>
			<?php foreach ($data as $v){?>
			<tr>
				<td><?php echo $v['cmid']?></td>
				<td><?php echo $v['cmname']?></td>
				<td>
					<ul style="padding: 0;">
						<li style="list-style: none;">市场价：<span><?php echo $v['mktprice']?></span></li>
						<li style="list-style: none;">商城价：<span><?php echo $v['sptprice']?></span></li>
					</ul>
				</td>
				<td><?php echo $v['stocks']?></td>
				<td><?php echo $v['click']?></td>
				<td><?php echo date('Y-m-d H-i-s',$v['registerdate'])?></td>
				<td>
					<a href="<?php echo U('Litem/index',array('cmid'=>$v['cmid']))?>" class="btn btn-sm btn-primary">属性列表</a>
					<a href="<?php echo U('edit',array('cmid'=>$v['cmid']))?>" class="btn btn-sm btn-warning">编辑</a>
					<a href="javascript:if(confirm('确认删除吗？')) location.href='<?php echo U('del',array('cmid'=>$v['cmid']))?>'" class="btn btn-sm btn-danger">删除</a>
				</td>
			</tr>
			<?php }?>
		</table>
		<div id="page" >
			<div class="pagination"><?php echo $page?></div>
		</div>
		
	</body>
</html>
